package com.zeng.configuration.microprofile.config.source;

import java.util.HashMap;
import java.util.Map;

/**
 * @author zyb
 * @date 2021-03-14 14:27
 */
public class JavaEnvConfigSource extends MapBasedConfigSource {
    public JavaEnvConfigSource() {
        super("Java System Env", 50);
    }

    @Override
    protected Map<String, String> prepareConfigData() throws Throwable {
        return new HashMap<>(System.getenv());
    }
}
